package com.yitiao.designmodel.behave.chain;

public class ArticleApprove extends Approve{
    @Override
    public void deploy(Course course) {
        if (course.getArticle()!=null){
            System.out.println("article  pass!");
            if (nextApprove != null){
                nextApprove.deploy(course);
            }
        }else {
            System.out.println("article fail!");
            return;
        }
    }
}
